﻿﻿@model IEnumerable<verk2013_project_group12.Models.UserProfile>

@{
    ViewBag.Title = "Invite";
}

<h2>Invite</h2>


@using (@Html.BeginForm("Invite", "Games", new { id = ViewContext.RouteData.Values["id"] }))
{    
    <select name="User" >
    @foreach (var user in Model)
    {
        <option value="@user.UserId" id="@user.UserId" >@user.UserName</option>
    }
        </select>
    <input type="submit" value="Invite Player" />
 }